package com.litorg.demo.db.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"q1"})
public class MsgReceive {
    @RabbitHandler
    public void getMsg(byte[] msg) {
        System.out.println(new String(msg));
    }
}